{% extends 'base.html' %}

{% block content %}

<div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">修改用户表</h3>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        {% csrf_token %}
                        <div class="form-group {% if error %}has-error{% endif %} ">
                            <label for="inputEmail3" class="col-sm-2 col-sm-offset-1 control-label">名称</label>
                            <div class="col-sm-6">
                                <input type="text" name="use_username"  class="form-control"  value="{{ use_obj.username }}" id="inputEmail3" >

                                <span class="help-block">{{ error }} </span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 col-sm-offset-1 control-label">姓名</label>
                            <div class="col-sm-6">
                                <input type="text" name="use_full_name"  value="{{ use_obj.full_name }}" class="form-control" id="inputPassword3" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 col-sm-offset-1 control-label">电话</label>
                            <div class="col-sm-6">
                                <input type="text" name="use_phone_number"  value="{{ use_obj.phone_number }}" class="form-control" id="inputPassword3" >
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-10">
                                <button type="submit" class="btn btn-default">保存</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

{% endblock %}